package images;
import javax.swing.*;
import java.io.*;
import java.awt.*;

public class GameDisplay {
	private Image[] img;
	private GameEngine engine;
	private GameControl window;
	private PlayerCharacter player;
	public GameDisplay(GameControl gc) {
		img = new Image[8];
		window = gc;
		engine = gc.getEngine();
		player = gc.getPlayer();
		img[0] = Toolkit.getDefaultToolkit().getImage(getClass().getResource("/images/background.png"));
		//img[0] = (new ImageIcon("background.png")).getImage();
	}
	public void draw(Graphics g) {
		//Background goes here
		g.drawImage(img[0], 0, 0, null);
		//player.draw(g);

		/*g.drawString(window.getWidth() + "," + window.getHeight(), 100, 100);
		g.setColor(Color.red);
		g.fillRect(0, window.getHeight() - 64, window.getWidth(), 64);
		g.setColor(Color.blue);
		g.fillRect(20, window.getHeight() - 128, 64, 64);*/
	}
}
